package com.haiyou.dc.es.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 房屋标签映射关系表
 *
 * @author Administrator
 * @date 2020-01-20 16:11:34
 */
@ApiModel(value = "房屋标签映射关系表")
@Data
@Accessors(chain = true)
@Table(name = "es_house_tag")
public class EsHouseTag implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 房屋id
     */
    @Column(name = "house_id")
    @ApiModelProperty(value = "房屋id", name = "houseId")
    private Integer houseId;

    /**
     * 标签id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "标签id", name = "id")
    private Integer id;

    /**
     * name
     */
    @Column(name = "name")
    @ApiModelProperty(value = "name", name = "name")
    private String name;

}
